package cn.funnyxb.powerremember.service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import cn.funnyxb.powerremember.pullMsg.PullTask4AppConfig;
import cn.funnyxb.powerremember.pullMsg.PullTask4Version;
import cn.funnyxb.tools.appFrame.activityFrame.AbstractProccessor;
import cn.funnyxb.tools.appFrame.debugTool.Debuger;

public class AppService extends Service
{
  private AbstractProccessor proccessor = new AbstractProccessor()
  {
  };

  private void log(String paramString)
  {
    Debuger.log("appService", paramString);
  }

  public IBinder onBind(Intent paramIntent)
  {
    log("onBind");
    return new DataBinder();
  }

  public void onCreate()
  {
    super.onCreate();
    log("oncreate");
  }

  public void onDestroy()
  {
    log("onDestroy");
    this.proccessor.releaseResource();
    log("exit");
    super.onDestroy();
  }

  public void onRebind(Intent paramIntent)
  {
    super.onRebind(paramIntent);
    log("onRebind");
  }

  public void onStart(Intent paramIntent, int paramInt)
  {
    super.onStart(paramIntent, paramInt);
    log("onStart");
    pullAppConfig();
  }

  public boolean onUnbind(Intent paramIntent)
  {
    log("onUnbind");
    return super.onUnbind(paramIntent);
  }

  public void pullAppConfig()
  {
    log("pullAppConfig");
    new PullTask4AppConfig(this, this.proccessor).execute(new Void[0]);
  }

  public void pullNewestVersionInfo()
  {
    log("pullNewestVersionInfo");
    new PullTask4Version(this, this.proccessor).execute(new Void[0]);
  }

  public class DataBinder extends Binder
  {
    public AppService getService()
    {
      return AppService.this;
    }
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.service.AppService
 * JD-Core Version:    0.5.3
 */